const fs = require('fs')

let promise = new Promise((resolve, reject) => {
    fs.readFile('./12.txt','utf8', (err, data) => {
        if(err) {
            reject(err)

        }else {
            resolve(data)
        }
    })
})
promise.then(result => {
    console.log(result)
})